package java期末练习.text43;

public class SumTest {
    public static void main(String[] args) {
        int s = 0;
        for (int b = 1; b <= 100; b++) {
            if (b % 2!= 0) {
                s += b;
            }
        }
        System.out.println("1 到 100 之间所有奇数的和为: " + s);
    }
}